package cn.rengy;

import java.util.concurrent.TimeUnit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
//@EnableDiscoveryClient
public class MallOrderApplication {
	
	public static void main(String[] args){
    	ConfigurableApplicationContext applicationContext =SpringApplication.run(MallOrderApplication.class, args);
    	//String userName = applicationContext.getEnvironment().getProperty("commonname");
    	//System.err.println("app name :"+userName);
//    	while(true) {
//    		String userName = applicationContext.getEnvironment().getProperty("common.name");
//            System.err.println("app name :"+userName);
//            try {
//				TimeUnit.SECONDS.sleep(1);
//			} catch (InterruptedException e) {
//				// TODO Auto-generated catch block
//				e.printStackTrace();
//			}
//        }
    	
    }
	
}
